/****************************************************************************
** Form implementation generated from reading ui file 'taskcreate.ui'
**
** Created: Пнд Мар 19 02:42:30 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.6   edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "taskcreate.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qradiobutton.h>
#include <qdatetimeedit.h>
#include <qspinbox.h>
#include <qcheckbox.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a taskcreateform as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
taskcreateform::taskcreateform( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "taskcreateform" );
    setModal( TRUE );

    QWidget* privateLayoutWidget = new QWidget( this, "layout16" );
    privateLayoutWidget->setGeometry( QRect( 10, 14, 222, 392 ) );
    layout16 = new QVBoxLayout( privateLayoutWidget, 11, 6, "layout16"); 

    layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); 

    textLabel2 = new QLabel( privateLayoutWidget, "textLabel2" );
    layout9->addWidget( textLabel2 );

    lineEdit2 = new QLineEdit( privateLayoutWidget, "lineEdit2" );
    layout9->addWidget( lineEdit2 );
    layout16->addLayout( layout9 );

    radioButton3_2 = new QRadioButton( privateLayoutWidget, "radioButton3_2" );
    radioButton3_2->setChecked( TRUE );
    layout16->addWidget( radioButton3_2 );

    layout13 = new QHBoxLayout( 0, 0, 6, "layout13"); 

    radioButton3 = new QRadioButton( privateLayoutWidget, "radioButton3" );
    radioButton3->setChecked( FALSE );
    layout13->addWidget( radioButton3 );
    spacer7 = new QSpacerItem( 51, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout13->addItem( spacer7 );

    dateEdit3 = new QDateEdit( privateLayoutWidget, "dateEdit3" );
    layout13->addWidget( dateEdit3 );
    layout16->addLayout( layout13 );

    radioButton2 = new QRadioButton( privateLayoutWidget, "radioButton2" );
    layout16->addWidget( radioButton2 );

    layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 

    textLabel1 = new QLabel( privateLayoutWidget, "textLabel1" );
    layout8->addWidget( textLabel1 );

    dateEdit3_2 = new QDateEdit( privateLayoutWidget, "dateEdit3_2" );
    layout8->addWidget( dateEdit3_2 );
    spacer5 = new QSpacerItem( 71, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout8->addItem( spacer5 );
    layout16->addLayout( layout8 );

    layout9_2 = new QHBoxLayout( 0, 0, 6, "layout9_2"); 

    textLabel4 = new QLabel( privateLayoutWidget, "textLabel4" );
    layout9_2->addWidget( textLabel4 );

    spinBox1 = new QSpinBox( privateLayoutWidget, "spinBox1" );
    layout9_2->addWidget( spinBox1 );

    textLabel4_2 = new QLabel( privateLayoutWidget, "textLabel4_2" );
    layout9_2->addWidget( textLabel4_2 );
    spacer1 = new QSpacerItem( 73, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout9_2->addItem( spacer1 );
    layout16->addLayout( layout9_2 );

    layout11 = new QGridLayout( 0, 1, 1, 0, 6, "layout11"); 

    checkBox1 = new QCheckBox( privateLayoutWidget, "checkBox1" );

    layout11->addWidget( checkBox1, 0, 0 );

    checkBox1_7 = new QCheckBox( privateLayoutWidget, "checkBox1_7" );

    layout11->addWidget( checkBox1_7, 1, 2 );

    checkBox1_2 = new QCheckBox( privateLayoutWidget, "checkBox1_2" );

    layout11->addWidget( checkBox1_2, 0, 1 );

    checkBox1_5 = new QCheckBox( privateLayoutWidget, "checkBox1_5" );

    layout11->addWidget( checkBox1_5, 1, 0 );
    spacer6 = new QSpacerItem( 20, 40, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout11->addMultiCell( spacer6, 0, 1, 4, 4 );

    checkBox1_6 = new QCheckBox( privateLayoutWidget, "checkBox1_6" );

    layout11->addWidget( checkBox1_6, 1, 1 );

    checkBox1_4 = new QCheckBox( privateLayoutWidget, "checkBox1_4" );

    layout11->addWidget( checkBox1_4, 0, 3 );

    checkBox1_3 = new QCheckBox( privateLayoutWidget, "checkBox1_3" );

    layout11->addWidget( checkBox1_3, 0, 2 );
    layout16->addLayout( layout11 );

    layout12 = new QHBoxLayout( 0, 0, 6, "layout12"); 

    spinBox2 = new QSpinBox( privateLayoutWidget, "spinBox2" );
    layout12->addWidget( spinBox2 );

    textLabel5_2 = new QLabel( privateLayoutWidget, "textLabel5_2" );
    layout12->addWidget( textLabel5_2 );
    spacer2 = new QSpacerItem( 51, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout12->addItem( spacer2 );

    checkBox8 = new QCheckBox( privateLayoutWidget, "checkBox8" );
    layout12->addWidget( checkBox8 );
    layout16->addLayout( layout12 );

    textEdit1 = new QTextEdit( privateLayoutWidget, "textEdit1" );
    layout16->addWidget( textEdit1 );

    layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 

    pushButton1 = new QPushButton( privateLayoutWidget, "pushButton1" );
    layout3->addWidget( pushButton1 );

    pushButton2 = new QPushButton( privateLayoutWidget, "pushButton2" );
    layout3->addWidget( pushButton2 );

    pushButton3 = new QPushButton( privateLayoutWidget, "pushButton3" );
    layout3->addWidget( pushButton3 );
    layout16->addLayout( layout3 );
    languageChange();
    resize( QSize(242, 421).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

/*
 *  Destroys the object and frees any allocated resources
 */
taskcreateform::~taskcreateform()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void taskcreateform::languageChange()
{
    setCaption( tr( "Create task..." ) );
    QWhatsThis::add( this, QString::null );
    textLabel2->setText( tr( "Task name:" ) );
    radioButton3_2->setText( tr( "s&imple" ) );
    radioButton3_2->setAccel( QKeySequence( tr( "Alt+I" ) ) );
    radioButton3->setText( tr( "d&ue date" ) );
    radioButton3->setAccel( QKeySequence( tr( "Alt+U" ) ) );
    radioButton2->setText( tr( "&periods" ) );
    radioButton2->setAccel( QKeySequence( tr( "Alt+P" ) ) );
    textLabel1->setText( tr( "starts from" ) );
    textLabel4->setText( tr( "Every" ) );
    textLabel4_2->setText( tr( "week on" ) );
    checkBox1->setText( tr( "&Mon" ) );
    checkBox1->setAccel( QKeySequence( tr( "Alt+M" ) ) );
    checkBox1_7->setText( tr( "Su&n" ) );
    checkBox1_7->setAccel( QKeySequence( tr( "Alt+N" ) ) );
    checkBox1_2->setText( tr( "Tu&e" ) );
    checkBox1_2->setAccel( QKeySequence( tr( "Alt+E" ) ) );
    checkBox1_5->setText( tr( "&Fri" ) );
    checkBox1_5->setAccel( QKeySequence( tr( "Alt+F" ) ) );
    checkBox1_6->setText( tr( "S&at" ) );
    checkBox1_6->setAccel( QKeySequence( tr( "Alt+A" ) ) );
    checkBox1_4->setText( tr( "T&hu" ) );
    checkBox1_4->setAccel( QKeySequence( tr( "Alt+H" ) ) );
    checkBox1_3->setText( tr( "&Wed" ) );
    checkBox1_3->setAccel( QKeySequence( tr( "Alt+W" ) ) );
    textLabel5_2->setText( tr( "times" ) );
    checkBox8->setText( tr( "un&limited" ) );
    checkBox8->setAccel( QKeySequence( tr( "Alt+L" ) ) );
    pushButton1->setText( tr( "&OK" ) );
    pushButton1->setAccel( QKeySequence( tr( "Alt+O" ) ) );
    pushButton2->setText( tr( "Appl&y" ) );
    pushButton2->setAccel( QKeySequence( tr( "Alt+Y" ) ) );
    pushButton3->setText( tr( "&Cancel" ) );
    pushButton3->setAccel( QKeySequence( tr( "Alt+C" ) ) );
}

